package com.chuangshi.core.vote.member.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.chuangshi.core.kit.Constant;
import com.chuangshi.core.kit.Entity;
import com.chuangshi.core.kit.Request;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 会员
 *
 * @author marcus
 * @date 2018-11-20
 */
@Component
@Document(collection = "member_info")
public class Member extends Entity {

	public Member() {

	}

	public Member(Request request) {
		this.copy(request);
	}

	/**
	 * 会员编号
	 */
	@Id
	@Field
	private String memberId;

	/**
	 * 用户编号
	 */
	@Field
	private String userId;

	/**
	 * 姓名
	 */
	@Field
	private String memberName;

	/**
	 * 手机号码
	 */
	@Field
	private String memberMobile;

	/**
	 * 密码
	 */
	@Field
	private String memberPassword;

	/**
	 * 昵称
	 */
	@Field
	private String memberNickName;

	/**
	 * 头像编号
	 */
	@Field
	private String memberAvatarId;

	/**
	 * 头像路径
	 */
	@Field
	private String memberAvatarPath;

	/**
	 * 微信公众号唯一性标识
	 */
	@Field
	private String memberWechatMpOpenId;

	/**
	 * 微信小程序唯一性标识
	 */
	@Field
	private String memberWechatMiniOpenId;

	/**
	 * 微信联合标识
	 */
	@Field
	private String memberWechatUnionId;

	/**
	 * 性别
	 */
	@Field
	private String memberSex;

	/**
	 * 备注
	 */
	@Field
	private String memberRemark;

	public String getMemberId() {
		return memberId;
	}

	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getMemberName() {
		return memberName;
	}

	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}

	public String getMemberMobile() {
		return memberMobile;
	}

	public void setMemberMobile(String memberMobile) {
		this.memberMobile = memberMobile;
	}

	public String getMemberPassword() {
		return memberPassword;
	}

	public void setMemberPassword(String memberPassword) {
		this.memberPassword = memberPassword;
	}

	public String getMemberNickName() {
		return memberNickName;
	}

	public void setMemberNickName(String memberNickName) {
		this.memberNickName = memberNickName;
	}

	public String getMemberAvatarId() {
		return memberAvatarId;
	}

	public void setMemberAvatarId(String memberAvatarId) {
		this.memberAvatarId = memberAvatarId;
	}

	public String getMemberAvatarPath() {
		return memberAvatarPath;
	}

	public void setMemberAvatarPath(String memberAvatarPath) {
		this.memberAvatarPath = memberAvatarPath;
	}

	public String getMemberWechatMpOpenId() {
		return memberWechatMpOpenId;
	}

	public void setMemberWechatMpOpenId(String memberWechatMpOpenId) {
		this.memberWechatMpOpenId = memberWechatMpOpenId;
	}

	public String getMemberWechatMiniOpenId() {
		return memberWechatMiniOpenId;
	}

	public void setMemberWechatMiniOpenId(String memberWechatMiniOpenId) {
		this.memberWechatMiniOpenId = memberWechatMiniOpenId;
	}

	public String getMemberWechatUnionId() {
		return memberWechatUnionId;
	}

	public void setMemberWechatUnionId(String memberWechatUnionId) {
		this.memberWechatUnionId = memberWechatUnionId;
	}

	public String getMemberSex() {
		return memberSex;
	}

	public void setMemberSex(String memberSex) {
		this.memberSex = memberSex;
	}

	public String getMemberRemark() {
		return memberRemark;
	}

	public void setMemberRemark(String memberRemark) {
		this.memberRemark = memberRemark;
	}
}